package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.trade.item.convert.SkuConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.skus.custom.get Response
	 * @author fxy
	 *
	 */
	public class SkusCustomGetResponse extends TaobaoResponse
	{
		/**
		 *  Y 	 Sku对象，具体字段以fields决定
		 */
		[Bindable]
		public var skus:ArrayCollection;

		public function SkusCustomGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initSkus();
		}

		private function initSkus():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("skus"))
					skus=SkuConvert.convertSkus(body["rsp"]["skus"]);
			}
		}
	}
}